import request from '@/utils/request'

// 用户登录
export const UserLogin = ({ username, password }) => {
  return request.post('/h5/user/login', { username, password })
}

// 用户注册
export const UserRegister = ({ username, password }) => {
  return request.post('/h5/user/register', { username, password })
}
// 获取用户信息
export const getUserInfo = () => {
  return request('/h5/user/currentUser')
}
